home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 4-Demos / Apple Demos / Tutorials / Display Card 4•8⁄8•24 Training / Display Card 4•8_8•24 Training / card_33085.txt < prev    next >
Text File  |  1990-03-19  |  10KB  |  434 lines

  1. -- card: 33085 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 33383
  5. -- name: qa 8
  6. ----- HyperTalk script -----
  7. on opencard
  8.   put name of this card into field "Tom's Field"
  9.   hide cd fld "comment 8 true"
  10.   hide cd fld "comment 8 false"
  11.   hide cd fld "clicktocontinue"
  12.   show cd btn "check my answers"
  13.   put "" into memolist
  14. end opencard
  15.  
  16.  
  17.  
  18.  
  19. -- part 1 (field)
  20. -- low flags: 80
  21. -- high flags: 0002
  22. -- rect: left=8 top=133 right=147 bottom=23
  23. -- title width / last selected line: 0
  24. -- icon id / first selected line: 0 / 0
  25. -- text alignment: 0
  26. -- font id: 3
  27. -- text size: 9
  28. -- style flags: 0
  29. -- line height: 12
  30. -- part name: our Answers
  31.  
  32.  
  33. -- part 2 (field)
  34. -- low flags: 81
  35. -- high flags: 0002
  36. -- rect: left=31 top=133 right=147 bottom=49
  37. -- title width / last selected line: 0
  38. -- icon id / first selected line: 0 / 0
  39. -- text alignment: 0
  40. -- font id: 3
  41. -- text size: 9
  42. -- style flags: 0
  43. -- line height: 12
  44. -- part name: Your Answers
  45.  
  46.  
  47. -- part 3 (button)
  48. -- low flags: 00
  49. -- high flags: 2006
  50. -- rect: left=110 top=142 right=162 bottom=131
  51. -- title width / last selected line: 0
  52. -- icon id / first selected line: 0 / 0
  53. -- text alignment: 1
  54. -- font id: 0
  55. -- text size: 12
  56. -- style flags: 0
  57. -- line height: 16
  58. -- part name: check 1
  59. ----- HyperTalk script -----
  60. on mouseUp
  61.   repeat with i = 1 to 3
  62.     put "" into cd fld "Your Answers"
  63.     set the hilite of cd btn i to false
  64.     set the hilite of me to true
  65.     put word 2 of the short name of me into cd fld "Your answers"
  66.   end repeat
  67.   put "" into cd fld "Your Answers"
  68.   set the hilite of cd btn 8 to false
  69.   set the hilite of me to true
  70.   put word 2 of the short name of me into cd fld "Your answers"
  71. end mouseUp
  72.  
  73.  
  74.  
  75. -- part 4 (button)
  76. -- low flags: 00
  77. -- high flags: 2006
  78. -- rect: left=110 top=175 right=195 bottom=131
  79. -- title width / last selected line: 0
  80. -- icon id / first selected line: 0 / 0
  81. -- text alignment: 1
  82. -- font id: 0
  83. -- text size: 12
  84. -- style flags: 0
  85. -- line height: 16
  86. -- part name: check 2
  87. ----- HyperTalk script -----
  88. on mouseUp
  89.   repeat with i = 1 to 3
  90.     put "" into cd fld "Your Answers"
  91.     set the hilite of cd btn i to false
  92.     set the hilite of me to true
  93.     put word 2 of the short name of me into cd fld "Your answers"
  94.   end repeat
  95.   put "" into cd fld "Your Answers"
  96.   set the hilite of cd btn 8 to false
  97.   set the hilite of me to true
  98.   put word 2 of the short name of me into cd fld "Your answers"
  99. end mouseUp
  100.  
  101.  
  102.  
  103. -- part 5 (button)
  104. -- low flags: 00
  105. -- high flags: 2006
  106. -- rect: left=110 top=207 right=227 bottom=131
  107. -- title width / last selected line: 0
  108. -- icon id / first selected line: 0 / 0
  109. -- text alignment: 1
  110. -- font id: 0
  111. -- text size: 12
  112. -- style flags: 0
  113. -- line height: 16
  114. -- part name: check 3
  115. ----- HyperTalk script -----
  116. on mouseUp
  117.   repeat with i = 1 to 3
  118.     put "" into cd fld "Your Answers"
  119.     set the hilite of cd btn i to false
  120.     set the hilite of me to true
  121.     put word 2 of the short name of me into cd fld "Your answers"
  122.   end repeat
  123.   put "" into cd fld "Your Answers"
  124.   set the hilite of cd btn 8 to false
  125.   set the hilite of me to true
  126.   put word 2 of the short name of me into cd fld "Your answers"
  127. end mouseUp
  128.  
  129.  
  130.  
  131. -- part 6 (button)
  132. -- low flags: 00
  133. -- high flags: A003
  134. -- rect: left=126 top=312 right=339 bottom=268
  135. -- title width / last selected line: 0
  136. -- icon id / first selected line: 0 / 0
  137. -- text alignment: 1
  138. -- font id: 0
  139. -- text size: 12
  140. -- style flags: 0
  141. -- line height: 16
  142. -- part name: Check my answers
  143. ----- HyperTalk script -----
  144. on mouseUp
  145.   global memolist, testnumber, inProgress
  146.   put "" into memolist
  147.   set cursor to busy
  148.   lock screen
  149.   go card "test 7"
  150.   put 1 into r
  151.   repeat with r = 1 to 8
  152.     go card ("qa" && r)
  153.     if cd fld "Your answers" is "" then
  154.       answer "You're not done, yet!" with "Ooops!"
  155.       put true into tryAgain
  156.       exit mouseup
  157.     else
  158.       put false into tryAgain
  159.       if cd fld "Your answers" = cd fld "Our Answers" then
  160.         put true into item r of memolist
  161.       else
  162.         put false into item r of memolist
  163.       end if
  164.       add 1 to r
  165.     end if
  166.   end repeat
  167.  
  168.   if tryagain = false then
  169.  
  170.     if the short name of this card is "qa 8" then
  171.       put "5" into testNumber
  172.       put 1 into r
  173.       go card "qa 1"
  174.       hide cd fld "instruction 3"
  175.       set cursor to hand
  176.     end if
  177.  
  178.     unlock screen with visual dissolve slow to black
  179.  
  180.     repeat with r = 1 to 8
  181.       show cd fld "clicktocontinue"
  182.       if item r of memoList is "true" then
  183.         put ("comment" && r && "true") into theComment
  184.       else
  185.         put ("comment" && r && "false") into theComment
  186.       end if
  187.       show cd fld theComment
  188.       wait until the mouseclick
  189.       hide cd fld theComment
  190.       hide cd fld "clicktocontinue"
  191.       add 1 to r
  192.       go card ("qa" && r)
  193.     end repeat
  194.  
  195.   end if
  196.  
  197.   if memolist contains "False" then
  198.     answer "Do you want to try again?" with "No" or "Yes"
  199.     if it is "Yes" then
  200.       show cd btn "Check my Answers"
  201.       put "" into memolist
  202.       put true into inProgress
  203.       go card "qa 1"
  204.     else
  205.       ScoreReview
  206.     end if
  207.   else
  208.     ScoreReview
  209.   end if
  210. end mouseUp
  211.  
  212.  
  213.  
  214.  
  215. -- part 8 (field)
  216. -- low flags: 81
  217. -- high flags: 2004
  218. -- rect: left=59 top=312 right=341 bottom=269
  219. -- title width / last selected line: 0
  220. -- icon id / first selected line: 0 / 0
  221. -- text alignment: 1
  222. -- font id: 157
  223. -- text size: 14
  224. -- style flags: 0
  225. -- line height: 18
  226. -- part name: ClicktoContinue
  227.  
  228.  
  229. -- part 9 (field)
  230. -- low flags: 80
  231. -- high flags: 2004
  232. -- rect: left=80 top=6 right=95 bottom=350
  233. -- title width / last selected line: 0
  234. -- icon id / first selected line: 0 / 0
  235. -- text alignment: 1
  236. -- font id: 156
  237. -- text size: 14
  238. -- style flags: 0
  239. -- line height: 16
  240. -- part name: comment 8 true
  241.  
  242.  
  243. -- part 10 (field)
  244. -- low flags: 80
  245. -- high flags: 2004
  246. -- rect: left=224 top=13 right=99 bottom=504
  247. -- title width / last selected line: 0
  248. -- icon id / first selected line: 0 / 0
  249. -- text alignment: 1
  250. -- font id: 156
  251. -- text size: 14
  252. -- style flags: 0
  253. -- line height: 16
  254. -- part name: comment 8 false
  255.  
  256.  
  257. -- part 11 (button)
  258. -- low flags: 00
  259. -- high flags: 0001
  260. -- rect: left=457 top=317 right=342 bottom=485
  261. -- title width / last selected line: 0
  262. -- icon id / first selected line: 18622 / 18622
  263. -- text alignment: 1
  264. -- font id: 0
  265. -- text size: 12
  266. -- style flags: 0
  267. -- line height: 16
  268. -- part name: next
  269. ----- HyperTalk script -----
  270. on mouseUp
  271.   answer "Click one of the sections." with "Help" or "OK"
  272.   if it is "Help" then
  273.     push card
  274.     visual dissolve
  275.     go card "howtoUse"
  276.   else exit mouseUp
  277. end mouseUp
  278.  
  279.  
  280.  
  281. -- part 12 (field)
  282. -- low flags: 81
  283. -- high flags: 2004
  284. -- rect: left=51 top=311 right=340 bottom=269
  285. -- title width / last selected line: 0
  286. -- icon id / first selected line: 0 / 0
  287. -- text alignment: 1
  288. -- font id: 157
  289. -- text size: 14
  290. -- style flags: 0
  291. -- line height: 18
  292. -- part name: ClicktoContinue
  293.  
  294.  
  295. -- part 14 (button)
  296. -- low flags: 00
  297. -- high flags: 2000
  298. -- rect: left=428 top=317 right=342 bottom=456
  299. -- title width / last selected line: 0
  300. -- icon id / first selected line: 18611 / 18611
  301. -- text alignment: 1
  302. -- font id: 0
  303. -- text size: 12
  304. -- style flags: 0
  305. -- line height: 16
  306. -- part name: prev
  307. ----- HyperTalk script -----
  308. on mouseUp
  309.   visual effect scroll right
  310.   go prev
  311. end mouseUp
  312.  
  313.  
  314.  
  315. -- part 15 (button)
  316. -- low flags: 00
  317. -- high flags: 8003
  318. -- rect: left=279 top=312 right=339 bottom=421
  319. -- title width / last selected line: 0
  320. -- icon id / first selected line: 0 / 0
  321. -- text alignment: 1
  322. -- font id: 0
  323. -- text size: 12
  324. -- style flags: 0
  325. -- line height: 16
  326. -- part name: Test Menu
  327. ----- HyperTalk script -----
  328. on mouseUp
  329.   visual dissolve
  330.   go card "test 0"
  331. end mouseUp
  332.  
  333.  
  334.  
  335. -- part 16 (field)
  336. -- low flags: 00
  337. -- high flags: 0000
  338. -- rect: left=5 top=319 right=336 bottom=93
  339. -- title width / last selected line: 0
  340. -- icon id / first selected line: 0 / 0
  341. -- text alignment: 0
  342. -- font id: 20
  343. -- text size: 12
  344. -- style flags: 0
  345. -- line height: 16
  346. -- part name: Tom's Field
  347.  
  348.  
  349. -- part 17 (button)
  350. -- low flags: 00
  351. -- high flags: 2006
  352. -- rect: left=110 top=239 right=259 bottom=131
  353. -- title width / last selected line: 0
  354. -- icon id / first selected line: 0 / 0
  355. -- text alignment: 1
  356. -- font id: 0
  357. -- text size: 12
  358. -- style flags: 0
  359. -- line height: 16
  360. -- part name: check 4
  361. ----- HyperTalk script -----
  362. on mouseUp
  363.   repeat with i = 1 to 3
  364.     put "" into cd fld "Your Answers"
  365.     set the hilite of cd btn i to false
  366.     set the hilite of me to true
  367.     put word 2 of the short name of me into cd fld "Your answers"
  368.   end repeat
  369.   put "" into cd fld "Your Answers"
  370.   set the hilite of cd btn 8 to false
  371.   set the hilite of me to true
  372.   put word 2 of the short name of me into cd fld "Your answers"
  373. end mouseUp
  374.  
  375.  
  376.  
  377. -- part contents for background part 16
  378. ----- text -----
  379. q&a 8
  380.  
  381. -- part contents for background part 4
  382. ----- text -----
  383. Macintosh Display Card 4‚Ä¢8 and 8‚Ä¢24
  384.  
  385. -- part contents for background part 5
  386. ----- text -----
  387. Training Evaluation
  388.  
  389. -- part contents for background part 6
  390. ----- text -----
  391.  
  392. The answer that best describes the quality of true color and grayscale graphics is:
  393.  
  394. convolution-quality
  395.  
  396. black and white picture quality
  397.  
  398. photo-quality
  399.  
  400. interlace-quality
  401.  
  402. -- part contents for background part 10
  403. ----- text -----
  404. Multiple Choice Question #8    ( final question )
  405.  
  406. -- part contents for card part 1
  407. ----- text -----
  408. 3
  409.  
  410. -- part contents for card part 8
  411. ----- text -----
  412. Click the mouse to continue.
  413.  
  414. -- part contents for card part 10
  415. ----- text -----
  416.  
  417. That's not right.  This is a powerful capability of the 24-bit mode on the 8‚Ä¢24 card.  You should know it.
  418.  
  419. -- part contents for card part 9
  420. ----- text -----
  421.  
  422. Right!  This holds true for true color on the RGB monitor and grayscale on the High-Resolution Monochrome Monitor.
  423.  
  424. -- part contents for card part 12
  425. ----- text -----
  426. Click the mouse to continue.
  427.  
  428. -- part contents for background part 23
  429. ----- text -----
  430. card "qa 8"
  431.  
  432. -- part contents for card part 2
  433. ----- text -----
  434. 1